{include header}
<div class="row" style="padding:10px">
	{include user_menu}

	<div class="col-md-4 col-lg-4">
		{hook t_user_index_1}
		<div class="profile-picture" style="width: 100%;">
			<img style="width:100%;cursor: pointer;" src="{#WWW}{$data.avatar.a}" alt="修改头像">
		</div>
		{if IS_LOGIN}
			{if $user['id'] == $data['id']}
			<form action="{#WWW}/user/ava.html" method="post" enctype="multipart/form-data">
			<label>选择头像 <span>尽量选择正方形图片</span></label>
				<input type="file" name="photo" />
				<p style="
		    font-size: 14px;
		    color: #6B6B6B;
		        margin-top: 9px;
		">仅允许上传格式: 'jpg', 'gif', 'png', 'jpeg'</p>
				<button class="btn btn-primary">上传</button>
			</form>
			{/if}
		{/if}



	</div>
	<div class="col-md-8 col-lg-8" style="    padding-top: 10px;">


		<div class="profile-user-info">
			{hook t_user_index_2}
			<div class="profile-info-row">
				<div class="profile-info-name"> 用户名 </div>

				<div class="profile-info-value">
					<span style="color:#000;/* margin-top: 49px; */color: #478fca!important;font-size: 18px;      font-weight: normal;">{$data.user}</span>
				</div>
			</div>



			<div class="profile-info-row">
				<div class="profile-info-name"> 加入社区 </div>

				<div class="profile-info-value">
					<span><?php echo humandate($data['atime']); ?></span>
				</div>
			</div>

			<div class="profile-info-row">
				<div class="profile-info-name"> 最后在线 </div>

				<div class="profile-info-value">
					<span>3 hours ago</span>
				</div>
			</div>
			{hook t_user_index_3}


		</div>
	</div>
</div>
{include footer}
